import React from 'react'
import { LinkWidgetFactory } from 'react-js-diagrams'
import { DirectedLinkWidget } from './DirectedLinkWidget'

export class DirectedLinkFactory extends LinkWidgetFactory {
    constructor () {
        super('default')
    }

    generateReactWidget (diagramEngine, link) {
        return (
            <DirectedLinkWidget link={link} diagramEngine={diagramEngine} />
        )
    }
}
